#pragma once
#include <map>
#include <QString>

class CBondDealProFile{
public:
	static CBondDealProFile& instance();

	std::map<QString, int> m_mapRate;
private:
	CBondDealProFile(){
		int nIndex = 0;
		m_mapRate[""] = nIndex;
		m_mapRate["--"] = nIndex++;
		m_mapRate["CCL"] = nIndex++;
		m_mapRate["C-3"] = nIndex++;
		m_mapRate["C-2"] = nIndex++;
		m_mapRate["C-"] = nIndex++;
		m_mapRate["C-"] = nIndex++;
		m_mapRate["C"] = nIndex++;
		m_mapRate["C+"] = nIndex++;
		m_mapRate["CC-"] = nIndex++;
		m_mapRate["CC"] = nIndex++;
		m_mapRate["CC+"] = nIndex++;
		m_mapRate["CCC-"] = nIndex++;
		m_mapRate["C-1"] = nIndex++;
		m_mapRate["CCC"] = nIndex++;
		m_mapRate["CCC+"] = nIndex++;
		m_mapRate["B-3"] = nIndex++;
		m_mapRate["B-2"] = nIndex++;
		m_mapRate["B-"] = nIndex++;
		m_mapRate["B"] = nIndex++;
		m_mapRate["B+"] = nIndex++;
		m_mapRate["BB-"] = nIndex++;
		m_mapRate["BB"] = nIndex++;
		m_mapRate["BB+"] = nIndex++;
		m_mapRate["BBB-"] = nIndex++;
		m_mapRate["B-1"] = nIndex++;
		m_mapRate["BBB"] = nIndex++;
		m_mapRate["BBB+"] = nIndex++;
		m_mapRate["A-3"] = nIndex++;
		m_mapRate["A-2"] = nIndex++;
		m_mapRate["A-"] = nIndex++;
		m_mapRate["A"] = nIndex++;
		m_mapRate["A+"] = nIndex++;
		m_mapRate["AA-"] = nIndex++;
		m_mapRate["AA"] = nIndex++;
		m_mapRate["AA+"] = nIndex++;
		m_mapRate["AAA-"] = nIndex++; 
		m_mapRate["A-1"] = nIndex++;
		m_mapRate["AAA"] = nIndex++;
		m_mapRate["AAA+"] = nIndex++;//AAA+ > AAA > A-1 > AAA- > AA+ > AA > AA- > A+ > A > A- > A-2 > A-3 > BBB+ > BBB
	}
};

